export function makeRandom(len: number) {
  let guid = ''
  for (let i = 1; i <= len; i++) {
    const n = Math.floor(Math.random() * 16.0).toString(16)
    guid += n
  }
  return guid
}

export function checkRes(res?: any) {
  if (res.code != 200) {
    ElMessage(res.msg)
    return false
  }
  return true
}
